from snakemake.utils import min_version
min_version("6.0")

SAMPLES=[]
with open('input.lst', 'r') as f:
    for line in f:
        SAMPLES.append(line.strip())

rule all:
    input:
        expand("chips_reg_potential/{sample}_reg_potential.tsv", sample=SAMPLES)

rule index_bam:
    input:
        "hg38_tranfac/{sample}"
    output:
        "chips_reg_potential/{sample}_reg_potential.tsv"
    shell:
        """
        python targets_RegPotential_Version2.py -a gencode.v46.primary.annot_protein.txt -p {input} -n {output} -d 10000
        """
